<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page  isELIgnored="false"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title></title>
    
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/bootstrap.min.css" />

    <link href="<%=request.getContextPath()%>/assets/css/font-awesome.css" rel="stylesheet" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
    <script src="assets/js/jquery-1.10.2.js"></script>
	<script  type="text/javascript" src="<%=request.getContextPath()%>/js/bootstrap.min.js" ></script>
	<link href="assets/css/custom.css" rel="stylesheet" />
	 <link href="assets/css/basic.css" rel="stylesheet" />
	 <link rel="stylesheet" href="css/Orderfont.css"><link>
<!-- ueditor -->
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/uedit/themes/default/css/ueditor.css">
	<script type="text/javascript" charset="utf-8" src="<%=request.getContextPath()%>/uedit/ueditor.config.js"></script>
	<script type="text/javascript" charset="utf-8" src="<%=request.getContextPath()%>/uedit/ueditor.all.js"> </script>	 


	  </head>
  
  <body>
               <div class="panel panel-info">
                        <div class="page-header">
		  		<h1><small>用户协议<i class="icon-double-angle-right"></i></small></h1>
			</div>
			<form action="userAgreementManagement/edit" method="post" >
			<input type="hidden" value="${userAgreement.id } " name="id">
			    <script id="editor" type="text/plain" name="content" style="width: 1024px;height: 768px">
	    		</script>	
	    		<div><button class="btn btn-primary">保存修改</button></div>		
	    		
			</form>

                            </div>

<script type="text/javascript">
//实例化编辑器
//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
var ue = UE.getEditor('editor');
var content='${userAgreement.content}';
ue.ready(function(){
	ue.setContent(content);
});
</script>
  <c:if test="${!empty oper_message }">
  	<script type="text/javascript">
  		alert("${oper_message}");
  	</script>
  </c:if>
  </body>
</html>